package com.mdd.front.validate.car.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("订单创建参数")
public class CarOrderCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "门店id")
    private Long storeId;

    @NotNull(message = "spuId参数缺失")
    @ApiModelProperty(value = "spuId")
    private Long spuId;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "数量")
    private Long quantity=1L;


    @ApiModelProperty(value = "地区")
    private String area;

    @ApiModelProperty(value = "订单id")
    private Long orderId;
}
